/**
 *
 * @param {service} {name,layerId}
 * @param {fids} array  []
 */
function delFeature({ service, fids, docLayer }) {
  var deleteService = new Zondy.Service.EditDocFeature(
    service.name,
    service.layerId,
    {}
  )
  deleteService.deletes(fids, onPntSuccess(docLayer))
}
function onPntSuccess(docLayer) {
  return function (data) {
    if (data.succeed) {
      alert("删除要素成功！")
      docLayer.refresh()
    } else {
      alert("删除要素失败！")
    }
  }
}
export { delFeature }
